package com.ljf.service;

import com.ljf.entity.Menu;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface LoginService {
    Map<String, Object> login(String username, String password, HttpServletRequest request, HttpServletResponse response);

    Map<String, Object> checkedToken(String token);

    /**
     * 获取登录者的菜单
     * @param token
     * @return
     */
    List<Menu> empMenu(String token);

    void exit(String token);
}
